<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Jane
  Date: 2023/3/2
  Time: 23:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<form action="queryAllWaybillByPage.do" method="get">
    <input type="text" name="ename"/> <input type="submit" value="搜索">
</form>
<table border="1">
    <tr>
        <th>编号</th>
        <th>快递类型</th>
        <th>寄件人姓名</th>
        <th>寄件人电话</th>
        <th>寄件人地址</th>
        <th>收件人姓名</th>
        <th>收件人电话</th>
        <th>收件人地址</th>
        <th>快递费用</th>
        <th>状态</th>
    </tr>

    <c:forEach items="${pageInfo.list}" var="w">
        <tr>
            <td>${w.waybillNo}</td>
            <td>${w.mailType}</td>
            <td>${w.senderName}</td>
            <td>${w.sender_phone}</td>
            <td>${w.sender_address}</td>
            <td>${w.recipient_name}</td>
            <td>${w.recipient_phone}</td>
            <td>${w.recipient_address}</td>
            <td>${w.mail_cost}</td>
            <td>${w.status}</td>
            <td><input type="submit" value="接受运单"></td>
        </tr>
    </c:forEach>
</table>

<c:forEach begin="1" end="${pageInfo.pages}" var="index">
<a href="queryAllWaybillByPage.do?pageNum=${index}&pageSize=${pageInfo.pageSize}">${index}<a/>
    </c:forEach><br/>
    当前第${pageInfo.pageNum}页,一共${pageInfo.pageSize-1}页


</body>
</html>
